package com.jinmdz.fmis.api.api.model.area;

import com.jinmdz.fmis.common.annotation.AnValidate;
import com.jinmdz.fmis.common.constant.EValidateCode;
import com.jinmdz.fmis.core.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 加载子行政区划机构
 *
 * @author LiCongLu
 * @date 2020-05-21 16:59
 */
@ApiModel(value = "加载子行政区划机构", description = "加载子行政区划机构")
public class AreaParentData extends BaseBean {
    /**
     * 父行政区划主键
     */
    @AnValidate(name = "父行政区划主键", required = true, code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "父行政区划主键", name = "parentId", position = 1)
    private Integer parentId;

    /**
     * 是否包含省市区县，-1，全部；0，不包含；1，只包含
     */
    @AnValidate(name = "是否包含省市区县", required = true)
    @ApiModelProperty(value = "是否包含省市区县", name = "asProvinceCityCounty", example = "-1/0/1", position = 2)
    private Integer asProvinceCityCounty;

    public Integer getParentId() {
        return parentId;
    }

    public AreaParentData setParentId(Integer parentId) {
        this.parentId = parentId;
        return this;
    }

    public Integer getAsProvinceCityCounty() {
        return asProvinceCityCounty;
    }

    public AreaParentData setAsProvinceCityCounty(Integer asProvinceCityCounty) {
        this.asProvinceCityCounty = asProvinceCityCounty;
        return this;
    }
}
